<%@page import="java.security.Principal" %>
<%@page import="waffle.windows.auth.WindowsAccount" %>
<%@page import="waffle.servlet.WindowsPrincipal" %>
<%@page import="com.sun.jna.platform.win32.Secur32" %>
<%@page import="com.sun.jna.platform.win32.Secur32Util" %>
<%
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
	response.setHeader("Pragma", "No-cache");
	com.total.reporting.dao.User user=(com.total.reporting.dao.User) session.getAttribute("user");
	if (user == null) {
		//response.sendRedirect("login.jsp");
		//return;

	}
	String userRole ="admin";// publisher.getRole();
	String entity ="EN";// publisher.getEntity();
	String filter = null;
	if (!userRole.equals("superAdmin")) {
		 filter = "entity='" + entity + "'";
	}
	
	
	/*String filter = null;
	String entity = null;
	if (!userRole.equals("admin")) {
		filter = "entity='" + userRole + "'";
		entity=userRole;
	}
	*/
	 String userName="";//Secur32Util.getUserNameEx(Secur32.EXTENDED_NAME_FORMAT.NameCanonical);
	  userName=userName.substring(userName.lastIndexOf("/")+1) ;
%>